*{ margin:0; padding:0; box-sizing: border-box;}
html,body{ height: 100%; overflow: auto; font-size: 14px; color: #444; 
font-family: "PingFang SC",miui,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,sans-serif;}
button{ border:0; outline: none; background: none; }  
.box{
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 90vh;
  max-height: 800px;
  border:1px solid #ccc;
  margin:5vh auto;
  padding-left: 200px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 1px 6px #ccc;
}
.box-left{
  position: absolute;
  top:0;
  left: 0;
  width: 200px;
  height: 100%;
  overflow-y: auto;
}
.box-right{
  position: relative;
  padding-top: 50px;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: #fff;
  border-left: 1px solid #00AEF3;
}
#userBox{
  width: 100%;
  height: 100%;
  overflow: hidden auto;
}
.content-title{
  position: absolute;
  height: 50px;
  width: 100%;
  top:0;
  left: 0;
  color: #fff;
  background: #00AEF3;
}
.content{ 
  position: relative;
  height: 100%;
  width: 100%; 
  background: #f2f2f2;
  padding-bottom: 40px;
  overflow: hidden; 
  border:1px solid #eee; 
}
.msgBox{ 
  line-height:20px;width:100%; height: 100%;
  -webkit-overflow-scrolling:touch ;
  overflow-x: hidden; 
}
.heMsg,.myMsg{ position: relative; padding:20px 50px; min-height: 50px; overflow: hidden;}
.jiantou{ position: absolute; border:5px solid transparent; }
.infocont{ max-width:100%;float:left;width:auto;font-size:14px;padding:5px 10px;border-radius:2px;min-height:30px;word-wrap:break-word;}
.headImg{ background: #ccc; }
.heMsg .headImg{ position: absolute; width:30px;height:30px; top:20px; left: 10px; }
.heMsg .jiantou{ border-right-color: #fff; top:30px;left:40px; }
.heMsg .infocont{ background: #fff; box-shadow: -1px -1px #eee,1px 1px #eee;}
.myMsg .headImg{ position: absolute; width:30px;height:30px; top:20px; right: 10px; }
.myMsg .jiantou{ border-left-color: #98E165; top:30px;right:40px; }
.myMsg .infocont{float: right; background: #98E165; }
.tipinfo{ text-align: center; padding:10px 0; }
.tipinfo span{ display: inline-block; background: #DADADA; color: #fff; font-size: 12px; padding:1px 8px; border-radius: 2px; }
.tipinfo b{ color: #00B2FA; }
.msgBottom{ 
  position: absolute;
  left:0;
  bottom:0;
  min-height: 40px;
  width:100%;
  background: #fafafa;
  box-shadow: 0px -1px 5px #ccc;
  padding:5px 70px 5px 50px;
}
.bot-btn{ 
  position: absolute; 
  width:30px;
  height: 30px;
  border-radius: 50%; 
  background: #ccc; 
  top:50%;
  transform: translateY(-50%);
}
.send{
  right: 10px;
  width:50px;
  border-radius: 5px; 
  text-align: center;
  text-decoration: none;
  line-height: 30px;
  color: #fff;
  background: #02ACF7;
  transition: 0.2s;
}
.send:hover{
  background: #008EE4;
}
.editdiv{ 
  min-height: 30px;
  padding:5px;
  line-height: 20px;
  font-size: 14px;
  background: #eee;
  -webkit-tap-highlight-color:rgba(0,0,0,0);
  outline:none;
  -webkit-user-select:auto;
  background: #fff;
}
.editdiv *{
  -webkit-user-select:auto;
  user-select: auto;
}
.editdiv:empty::before { content: attr(placeholder); color: #999; }
.editdiv:focus::before { content: none; }  

.users,.user{ 
  padding-right: 20px; 
  height: 50px; 
  border-bottom: 1px solid #f2f2f2;
  transition: 0.2s;
}
#userBox .infocont{ 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space:nowrap;  
  box-shadow: none;
  padding:5px 0;
  background: none;
}
.users:hover,.user:hover{
  /*cursor: pointer;*/
  background: rgba(0,0,0,0.02);
}
#userBox .active{
  background: #EBF1FB;
}
.user .headImg{ 
  border-radius: 50%; 
}
#userBox .headImg{ top:10px; }
#userBox .jiantou{ top:20px;}
#userBox .headImg{ top:10px; }
#userBox .jiantou{ top:20px; }
#userBox .heMsg{ padding:10px 50px; }
#userBox .headImg .info_num{
  position: absolute;
  top:-5px;
  right:-5px;
  border-radius: 10px;
  height: 10px;
  width:10px;
  background: red;
  display: none;
}

.content-title button{
  float: right;
  height: 50px;
  line-height: 50px;
  padding: 0 20px;
}
.content-title input{
  float: right;
  width: 100px;
  height: 30px;
  margin:10px;
  border:none;
  outline: none;
}
.content-title h5{
  float: left;
  height: 50px;
  line-height: 50px;
  margin-left: 20px;
  font-size: 16px;
}
#username{ font-weight: bold; font-size: 15px; color: #FFE400; }
#login{ color: green; cursor: pointer;color: #fefefe; }

.msg-list-name{
  position: absolute;
  top:0;
  font-size: 12px;
  line-height: 1.5;
  color: green;
}
.heMsg .msg-list-name{ left:10px; }
.myMsg .msg-list-name{ right:10px; }

#fileBtn{
  left: 10px;
  text-decoration: none;
  line-height: 30px;
  text-align: center;
  background: #02ACF7;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
  background: #02ACF7 url(add.png) center/cover no-repeat;
}
#fileBtn:hover{
  background-color: #008EE4;
}
.infocont img{ max-width: 100%; }
.infocont video{ max-width: 100%; }
.infocont audio{ max-width: 100%; }


.add-select-box{
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 100%;
  padding:10px;
  background: #fff;
  display: none;
  box-shadow: 0px -1px 5px #ccc;
}
.add-select-box img{
  float: left;
  width: 26px;
  height: 26px;
  padding:3px;
}
.add-select-box input{
  opacity: 0;
  cursor: pointer;
}
.file_btns{
  clear: both;
}
.file_btns span{
  float: left; 
  width: 30px; 
  height: 24px;
  margin:5px 3px;
  font-size: 12px;
  overflow: hidden;
  background: url(t.png) center/auto 100% no-repeat;
  cursor: pointer;
}
.file_btns span input{
  width: 100%;height: 100%;
}
span.tupian_btn{ background-image:url(t.png); }
span.yinyue_btn{  background-image:url(y.png);}
span.shiping_btn{ background-image:url(s.png);}

#text img[src^="emoji/"],.infocont img[src^="emoji/"]
{ vertical-align: middle; width: 18px; }


#lookimg{
  position: fixed;
  width: 100%;
  height: 100%;
  top:0;
  left: 0;
  z-index: 999;
  background: rgba(0,0,0,0.7);
  display: table;
}
#lookimg>div{
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
#lookimg img{
  max-width: 100%;
}

[src="loading.png"]{
  -webkit-animation: rotate 1s steps(12) infinite;
  animation: rotate 1s steps(12) infinite;
}
@keyframes rotate{
  100% {
    -webkit-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@media screen and (max-width: 768px) {  /*文档宽度小于 768 像素*/
  .box{ 
    height: 100vh;
    margin: 0;
    padding-left: 50px; 

  }
  .content-title button{
    padding-left: 0;
  }
}